﻿@model NC.Models.AccountUser
@{
    ViewBag.Title = "Reset Password";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript" src="@Url.Content("~/Scripts/js/ResetPassword.js")" > </script>
<div class=" container">
@if(ViewBag.message!=null)
{
    <div class="alert alert-success alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
    @ViewBag.message
    </div>
}                       
@if (ViewBag.ResetSuccess!=null)
{
    <div class="alert alert-success alert-dismissable">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
        @ViewBag.ResetSuccess
    </div>
}
<div class="login-form-section">
    <div class="login-content bounceIn" >
    @using (Html.BeginForm("UpdateResetPassword", "Account"))
    {                      
        <div class="section-title">
            <h3>Reset Password</h3>
        </div>
        <div class="textbox-wrap" id="ValidPassContainer">
                <div class="input-group">
                <span class="input-group-addon glyphicon glyphicon-lock "></span>
                    @Html.PasswordFor(model => model.Password, new { @class = "form-control", @placeholder = "New Password", @required = "required", @id = "txtresetpass" })
                </div>
                <label class="control-label" id="lblvalidpass" for="inputError" style="display:none;">Your password should of length in between 6-20 and must contain at least 1 letter and 1 digit</label>
                @if (ViewBag.Notmatch != null)
                { 
                <div class="alert alert-warning alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                    @ViewBag.Notmatch
                </div>
                }
        </div>
        <div id="passchkContainer" class="textbox-wrap">
            <div class="input-group">
            <span class="input-group-addon  glyphicon glyphicon-lock "></span>
            <input type="password" class="form-control " placeholder="Confirm-Password" required="required" name="cresetpass" id="txtcresetpass"/>                                    
            </div>
            <label class="control-label" id="lblerror" for="inputError" style="display:none;">Password Mismatch</label>
            <label class="control-label" id="lblsuccess" for="inputError" style="display:none;">Password Matched</label>
        </div>                                             
        <div class="login-form-action clearfix">                          
            <button type="submit" class="btn btn-success pull-right blue-btn">Reset Password &nbsp; <span class="glyphicon glyphicon-chevron-right"></span></button>
        </div>
    }
    </div>
</div>
</div>